package com.sunlong.jiangwei.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author 孙龙
 * @since 2021-02-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(name="jw_category")
public class JwCategory implements Serializable {


    /**
     * 分类id
     */
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long categoryId;

    /**
     * 分类名称
     */
    private String categoryName;

    @Transient
    private Boolean show;
}
